


module.exports = function(boy){

    let hello = boy.createByCmd('@+test.Hello')
    // console.log('Model:', hello.$model())
    // console.log('Name:', hello.$name())
    // console.log('Mount:', hello.$mount())
    // console.log('Point:', hello.$point())
    // console.log('Root?', hello.$root())

    // console.log(hello)

    // let message = boy.get('message')

    // let title = boy.get('test.child.title')
    // console.log(message[0], message[0].$index())
    // console.log(title[0].$point(), title[0].$index())

    // console.log(message[1], message[1].$index())
    // console.log(message[2], message[2].$index())

    // console.log(hello.$json())

    hello.$set('title2', '@+title')

    hello.$set('message2', ['@+message'])

    // json.message2 = ['@+message', '@+message']
    // hello.$json(json)

    console.log(hello.$json())
}